#ifndef YCCONTROLSFRAME_H
#define YCCONTROLSFRAME_H
#include <QFrame>

namespace yc {

class Frame : public QFrame
{
    Q_OBJECT

public:
    explicit Frame(QWidget* parent = nullptr);

Q_SIGNALS:
    void clicked();

protected:
    void mousePressEvent(QMouseEvent* e) override;
    void mouseReleaseEvent(QMouseEvent* e) override;

private:
    QPoint press_pos_;
};

} // namespace yc

#endif // YCCONTROLSFRAME_H
